<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="http.install.html">Installing the HTTP extension</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="http.resources.html">资源类型</a></div>
 <div class="up"><a href="http.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="http.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>HTTP Configuration Options</strong></caption>

   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>说明</th>
     </tr>

    </thead>

    <tbody class="tbody">

     <tr id="http.configuration.etag.mode">
      <td>http.etag.mode</td>
      <td>&quot;MD5&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       The hashing algorithm used to generate the ETag.  MD5, SHA1, and CRC32
       are always available.  If the <a href="ref.hash.html" class="link">hash</a>
       extension is enabled, any hashing algorithms this extension provides 
       are available, too.
      </td>
     </tr>


     <tr id="http.configuration.log.cache">
      <td>http.log.cache</td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       The path (or stream wrapper url) to a log file in which to write successful cache hits.
      </td>
     </tr>


     <tr id="http.configuration.log.redirect">
      <td>http.log.redirect</td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       The path (or stream wrapper url) to a log file in which to write redirects.
      </td>
     </tr>


     <tr id="http.configuration.log.not-found">
      <td>http.log.not_found</td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       The path (or stream wrapper url) to a log file in which to write &quot;file not found&quot; errors.
      </td>
     </tr>


     <tr id="http.configuration.log.allowed-methods">
      <td>http.log.allowed_methods</td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       The path (or stream wrapper url) to a log file in which to write &quot;allowed methods&quot; violations.
      </td>
     </tr>


     <tr id="http.configuration.log.composite">
      <td>http.log.composite</td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       The path (or stream wrapper url) to a log file in which to write all events.
      </td>
     </tr>


     <tr id="http.configuration.request.methods.allowed">
      <td>http.request.methods.allowed</td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       Allowed request methods.  If a client issues a request with a request method
       other than listed here, PHP exits with a status of &quot;405 Method not allowed&quot;.
       要知道“出口”的含义请查阅
<a href="http.configuration.html" class="link">INI 设置</a>
<a href="" class="link">http.force_exit</a>。
      </td>
     </tr>


     <tr id="http.configuration.request.methods.custom">
      <td>http.request.methods.custom</td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_PERDIR|PHP_INI_SYSTEM</td>
      <td>
       Custom request methods.  If you want to use any non-standard request methods,
       you can register them with this INI setting or <span class="function"><a href="function.http-request-method-register.html" class="function">http_request_method_register()</a></span>.
      </td>
     </tr>


     <tr id="http.configuration.request.datashare.cookie">
      <td>http.request.datashare.cookie</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td>
       Whether the global <strong class="classname">HttpRequestDataShare</strong> should by default share cookie information.
      </td>
     </tr>


     <tr id="http.configuration.request.datashare.dns">
      <td>http.request.datashare.dns</td>
      <td>&quot;1&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td>
       Whether the global <strong class="classname">HttpRequestDataShare</strong> should by default share name lookup information.
      </td>
     </tr>


     <tr id="http.configuration.request.datashare.ssl">
      <td>http.request.datashare.ssl</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td>
       Whether the global <strong class="classname">HttpRequestDataShare</strong> should by default share SSL session information.
       This is not yet implemented in libcurl.
      </td>
     </tr>


     <tr id="http.configuration.request.datashare.connect">
      <td>http.request.datashare.connect</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td>
       Whether the global <strong class="classname">HttpRequestDataShare</strong> should by default share connect information.
       This is not yet implemented in libcurl.
      </td>
     </tr>


     <tr id="http.configuration.persistent.handles.limit">
      <td>http.persistent.handles.limit</td>
      <td>&quot;-1&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td>
       The maximum amount of persistent handles to keep alive.
      </td>
     </tr>


     <tr id="http.configuration.persistent.handles.ident">
      <td>http.persistent.handles.ident</td>
      <td>&quot;GLOBAL&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       The ident of persistent handles.
      </td>
     </tr>


     <tr id="http.configuration.send.inflate.start-auto">
      <td>http.send.inflate.start_auto</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_PERDIR|PHP_INI_SYSTEM</td>
      <td>
       Whether to automatically start the inflate output handler.
      </td>
     </tr>


     <tr id="http.configuration.send.inflate.start-flags">
      <td>http.send.inflate.start_flags</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       Initialization settings for the inflate output handler.
      </td>
     </tr>


     <tr id="http.configuration.send.deflate.start-auto">
      <td>http.send.deflate.start_auto</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_PERDIR|PHP_INI_SYSTEM</td>
      <td>
       Whether to automatically start the deflate output handler.
      </td>
     </tr>


     <tr id="http.configuration.send.deflate.start-flags">
      <td>http.send.deflate.start_flags</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       Initialization settings for the deflate output handler.
       See <a href="http.constants.html#http.constants.deflate" class="link">deflate constants</a>.
      </td>
     </tr>


     <tr id="http.configuration.send.not-found-404">
      <td>http.send.not_found_404</td>
      <td>&quot;1&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       Whether to automatically exit with a status of &quot;404 Not found&quot;,
       if <span class="function"><a href="function.http-send-file.html" class="function">http_send_file()</a></span> was not able to find the specified file.
       要知道“出口”的含义请查阅
<a href="http.configuration.html" class="link">INI 设置</a>
<a href="" class="link">http.force_exit</a>。
      </td>
     </tr>


     <tr id="http.configuration.only-exceptions">
      <td>http.only_exceptions</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       Whether all notices/warnings/errors should be thrown as exceptions.
      </td>
     </tr>


     <tr id="http.configuration.force-exit">
      <td>http.force_exit</td>
      <td>&quot;1&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>
       Each occasion where &quot;exits with a status of...&quot; is mentioned, usually causes 
       the halt of the scripting engine.  Disable this option if you alternatively
       want to start a discarding (dev/null) output handler and continue script 
       execution.
      </td>
     </tr>


    </tbody>
   
  </table>

 </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="http.install.html">Installing the HTTP extension</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="http.resources.html">资源类型</a></div>
 <div class="up"><a href="http.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
